﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace PasswordManagerMVC.Models
{
    public class SearchModel
    {
        public string SearchText { get; set; }

        public List<ItemModel> Results { get; set; }
    }

    public class ItemModel
    {
        public int ID { get; set; }

        [Required]
        public string UserName { get; set; }

        [Required]
        [DataType(DataType.Password)]
        public string Password { get; set; }

        [Required]
        [DataType(DataType.Password)]
        public string Key { get; set; }

        [Required]
        public string Tag1 { get; set; }

        public string Tag2 { get; set; }

        public string Tag3 { get; set; }

        public string Tag4 { get; set; }

        public string Tag5 { get; set; }
    }
}